package com.xc.dao;

import com.xc.pojo.AgentUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AgentUserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AgentUser record);

    int insertSelective(AgentUser record);

    AgentUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AgentUser record);

    int updateByPrimaryKey(AgentUser record);




    AgentUser findByCode(String agentCode);
    AgentUser findByPhone(String agentPhone);
    AgentUser findByName(String agentName);


    AgentUser login(@Param("agentPhone") String agentPhone
            ,@Param("agentPwd") String agentPwd);

    List getSecondAgent(Integer uid);


    List listByAdmin(@Param("realName") String realName
            ,@Param("phone") String phone);

    int CountAgentNum();



}